//
//  ShowViewModel.m
//  YKZB
//
//  Created by 曾少伟 on 2017/3/17.
//  Copyright © 2017年 曾少伟. All rights reserved.
//

#import "ShowViewModel.h"
#import "LiveModel.h"

@implementation ShowViewModel
+ (void)getHotVCData:(SucceedBlock)succeedBlock failed:(FailedBlock)failedBlock;{
    [HttpTool getWithPath:API_TEST params:nil success:^(id json) {
        if (![json[@"dm_error"] boolValue]) {
            NSArray *arr = [LiveModel mj_objectArrayWithKeyValuesArray:json[@"lives"]];
             if (succeedBlock) succeedBlock(arr);
        }else{
            
        }
    } failure:^(NSError *error) {
        if (failedBlock) failedBlock(error);
    }];
}


@end
